package lab02.test08;

public class Test08 {
    public static void main(String[] args) {
        Usb  u =new UsbDiskWriter();//接口声明变量
        u.start();//接口回调
        u.stop();
        //Usb作为接口，类Camera,类Moblie,类Usb使用接口
        u = new Camera();
        u.start();
        u.stop();

        u = new Mobile();
        u.start();
        u.stop();
    }
}
